package com.zhu.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 功能描述
 * @author JoyBoyZH
 * @date 2022/6/3
 * @return
 */
@Getter
public enum UserRoleEnum {
    //管理员
    ADMIN(0,"ADMIN"),
    //用户
    USER(1,"USER");

    @EnumValue
    private final Integer code;
    private final String name;

    UserRoleEnum(final Integer code, final String name) {
        this.code = code;
        this.name = name;
    }
}
